﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chilis.Proveedores.TransferObjects;
using System.Data;

namespace Chilis.Proveedores.DataAccess.Mapper
{
    public static class AreaMapper
    {
        public static AreaDTO GetArea(this IDataReader reader)
        {
            return new AreaDTO()
            {
                IdArea = reader.GetInt32("idarea"),
                NombreArea = reader.GetString("nombrearea"),
                EstadoArea = reader.GetInt32("estadoarea")
            };
        }
    }
}
